#ifndef MYGRAFX_H_INCLUDED
#define MYGRAFX_H_INCLUDED

#include <string>
#include <SDL/SDL.h>
using namespace std;


struct GlobalScreen
{
    static SDL_Surface* screen; // Our static variable
};

class MyGrafx
{
    private:

    public:
        //Screen attributes
        int SCREEN_WIDTH; //= 800;
        int SCREEN_HEIGHT; //= 600;
        int SCREEN_BPP; //= 32;

        SDL_Surface *picture;

        SDL_Rect pictureLocation;

        MyGrafx();
        MyGrafx( const MyGrafx &);
        ~MyGrafx();

        void operator=( const MyGrafx &new_obj );

        void setup(char* windowcaption = "New Window");
        void load(string image_file);

        void draw( int x, int y, SDL_Surface* screen=GlobalScreen::screen);

        void drawAnim(int screenLocationX,   int screenLocationY,
                      int spriteSizeW,        int spriteSizeH,
                      int spritemapLocationX, int spritemapLocationY, SDL_Surface* screen=GlobalScreen::screen);

        void flip(SDL_Surface* screen=GlobalScreen::screen);
        void clear(SDL_Surface* screen=GlobalScreen::screen);

};


#endif // MYGRAFX_H_INCLUDED
